package com.example.agricultural_big_data.mapper;

import com.alibaba.fastjson.JSONObject;
import com.example.agricultural_big_data.pojo.User;
import com.example.agricultural_big_data.pojo.UserRelation;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xiao yang
 * @Description:
 * @date 2021/1/3114:46
 */
@Mapper
@Repository
public interface UserMapper {
    int register(User user);
    User login(String name);

    User getInfoById(String userId);

    List<User> getUserList(User user);

    List<String> getUserRelationByUserId(String userId);

    int addUserRelation(UserRelation userRelation);
}
